package com.wf.springboot.generator.config;

import com.baomidou.mybatisplus.annotation.IdType;

/**
 * @author: wf
 * @created: 2024/6/29 13:04
 */


public class GeneratorConfig {
    /**
     * 要创建的表集合
     */
    public static final String[] CREATE_TABLE_LIST = {
            "sys_login_info",
            "sys_menu",
            "sys_notice",
            "sys_operation_log",
            "sys_role",
            "sys_role_menu",
            "sys_user",
            "sys_user_role"};
    /**
     * 数据库连接
     */
    public static final String URL = "jdbc:mysql://192.168.17.37:3306/wf_springboot?" +
            "serverTimezone=GMT%2B8&useSSL=false&characterEncoding=utf-8&allowMultiQueries=true";
    /**
     * 数据库账号
     */
    public static final String USERNAME = "root";
    /**
     * 数据库密码
     */
    public static final String PASSWORD = "root";
    /**
     * 作者
     */
    public static final String AUTHOR = "wf";
    /**
     * 去除表前缀
     */
    public static final String ADD_TABLE_PREFIX = "pms_";
    /**
     * 主键策略
     */
    public static final IdType ID_TYPE = IdType.AUTO;
    /**
     * 注释时间格式
     */
    public static final String COMMENT_DATE = "yyyy-MM-dd";
    /**
     * 生成代码的地方
     */
    public static final String LOCATION_OF_CODE_GENERATION = System.getProperty("user.dir") +
            "/wf-springboot-server/src/main/java";
    /**
     * xml生成的路径
     */
    public static final String XML_LOCATION = System.getProperty("user.dir") +
            "/wf-springboot-server/src/main/resources/mappers";
    /**
     * 父包名
     */
    public static final String PARENT_PACKAGE = "com.wf.springboot.server";
    /**
     * 模块名
     */
    public static final String MODULE_NAME = "server";
    /**
     * 实体包名
     */
    public static final String ENTITY_PACKAGE = "entity";
    /**
     * mapper包名
     */
    public static final String MAPPER_PACKAGE = "mapper";
    /**
     * mapper.xml包名
     */
    public static final String MAPPERS_PACKAGE = "mappers";
    /**
     * 业务接口包名
     */
    public static final String SERVICE_PACKAGE = "service";
    /**
     * 业务实现类包名
     */
    public static final String SERVICE_IMPL_PACKAGE = "service.impl";
    /**
     * 控制器包名
     */
    public static final String CONTROLLER_PACKAGE = "controller";


}
